package com.yuyue.springFramework.note13.entity.example;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * 扫描并定义Bean
 */
@ComponentScan
@Configuration
public class MyConfig {
    @Bean
    public MyBean getMyBean(){
        return new MyBean();
    }
}
